package com.pmcc.yn.repository;

import com.pmcc.yn.entity.AcceptInfo;
import com.pmcc.yn.entity.StoreInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by chuxuyang on 2019/1/12.
 */
public interface AcceptInfoRepository extends JpaRepository<AcceptInfo,String> {

    Page<AcceptInfo> findAll(Specification<AcceptInfo> spec, Pageable var1);

    AcceptInfo findById(String id);

 //   AcceptInfo findByOrderId(String orderId);

    List<AcceptInfo> findByTechId(String tchId);

    AcceptInfo findByTechIdAndOrderId(String techId,String orderId);

    List<AcceptInfo> findByTechIdAndFlagOrderByCreateTimeDesc(String id, int flag);

    AcceptInfo findByOrderIdAndTechId(String id,String techId);

    //   List<AcceptInfo> findByTechIdAndGradeIsNotNull(String id);
}
